package com.cloud.logger.zchain.common.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * User: wcy
 * Date: 2017/4/20
 * Time: 9:36
 */
@Data
@Entity(name="logger_project")
public class AngelaLoggerProject implements Serializable {

    @JsonProperty("id")
    @JSONField(name = "id")
    private Long id;
    //父节点（如果是根节点为0）
    @JsonProperty("parent_node")
    @JSONField(name = "parent_node")
    @ApiModelProperty(name = "parent_node", notes = "父节点（如果是根节点为0）", example = "1")
    private String parentNode;
    @JsonProperty("name")
    @JSONField(name = "name")
    @ApiModelProperty(name = "name", notes = "名称", example = "1")
    private String name;

    @JsonProperty("code")
    @JSONField(name = "code")
    @ApiModelProperty(name = "code", notes = "编码", example = "1")
    private String code;

    @JsonProperty("created_date")
    @JSONField(name = "created_date")
    @ApiModelProperty(name = "created_date", notes = "创建日期", example = "")
    private Date createdDate;

//    private String updateTime;

    @JsonProperty("ip")
    @JSONField(name = "ip")
    @ApiModelProperty(name = "ip", notes = "安装ip地址", example = "1")
    private String ip;

    @JsonProperty("path")
    @JSONField(name = "path")
    @ApiModelProperty(name = "path", notes = "安装路径", example = "1")
    private String path;

    @JsonProperty("start_time")
    @JSONField(name = "start_time")
    @ApiModelProperty(name = "start_time", notes = "开始时间", example = "")
    private Date startTime;

    @JsonProperty("shut_down_time")
    @JSONField(name = "shut_down_time")
    @ApiModelProperty(name = "shut_down_time", notes = "结束日期", example = "")
    private Date shutDownTime;

}
